/* normal */
body {
  background: #eee;
  color: #888; /* color is gray */
  border: 1px solid; /*no*/
  height: 30px; /* px */
  padding: 9px; /*px*/
  -webkit-animation: anim1 linear infinite;
}
.header, .footer span {
  width: 100%;
  height: 30px;
  margin: 15px;
  font-size: 42px; /*px*/
  animation: anim2 linear infinite;
}
.main {
  height: 600px;
}
.sidebar {
  margin: 0;
  height: 0px;
  line-height: 0px; /*px*/
  width: 60px;
  -webkit-box-shadow: 0 3px 3px rgba(0, 0, 0, 0.12);
  /* decimal */
  padding: 36.75px 36px 0;
  /* Data URI contains `px` */
  background: 36px 18px url();
}

@-webkit-keyframes anim1 {
  0%, 100% {
    -webkit-transform: none;
  }
  20%, 60% {
    -webkit-transform: rotate(-45deg);
  }
  40%, 80% {
    -webkit-transform: rotate(45deg);
  }
}
@keyframes anim2 {
  0% {
    height: 112.5px; /*px*/
    width: 112.5px;
    border: 1px solid #ddd; /*no*/
  }
  100% {
    height: 225px;
    width: 225px;
    border: 2px solid #ddd; /*no*/
  }
}

/* media query */
@media only screen and (min-device-width: 241px) and (max-device-width: 360px) {
  /* normal */
  body {
    background: #eee;
    color: #888; /* color is gray */
    border: 1px solid; /*no*/
    height: 30px; /* px */
    padding: 9px; /*px*/
    -webkit-animation: anim3 linear infinite;
  }
  .header, .footer span {
    width: 100%;
    height: 30px;
    margin: 15px;
    font-size: 42px; /*px*/
    animation: anim4 linear infinite;
  }
  .main {
    height: 600px;
  }
  .sidebar {
    margin: 0;
    height: 0px;
    line-height: 0px; /*px*/
    width: 60px;
    -webkit-box-shadow: 0 3px 3px rgba(0, 0, 0, 0.12);
    /* decimal */
    padding: 36.75px 36px 0;
    /* Data URI contains `px` */
    background: 36px 18px url();
  }
  .footer {
    height: 150px; /*px*/
  }

  @-webkit-keyframes anim3 {
    0%, 100% {
      -webkit-transform: none;
    }
    20%, 60% {
      -webkit-transform: rotate(-45deg);
    }
    40%, 80% {
      -webkit-transform: rotate(45deg);
    }
  }
  @keyframes anim4 {
    0% {
      height: 112.5px; /*px*/
      width: 112.5px;
      border: 1px solid #ddd; /*no*/
    }
    100% {
      height: 225px;
      width: 225px;
      border: 2px solid #ddd; /*no*/
    }
  }
}

.footer {
  height: 150px; /*px*/
}
